﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WS.EKA.UI.Business
{
    public enum WebSocketClientType
    {
        None,
        Sample,
        SampleBar,

        #region IT 公告相关
        ITNotice_OnDuty,
        ITNotice_LatestImportantTask,
        ITNotice_AnnounceMent,
        ITNotice_LatestImportantJob,
        #endregion

        #region 工单
        //最新事件
        Incident_Latest,
        //重大事件工单
        Incident_Important,
        //历史未解决
        Incident_HistoryNotResolved,
        Incident_StaticsByMonth,
        //今日工单状态
        Incident_TodayStatus,
        //今日事件工单按故障类型（大类）
        Incident_TodayIncidentByFault,
        //今日工单解决率
        Incident_TodayResolvedPercent,
        //30天内事件数量趋势
        Incident_30DaysTrend,
        //30天内事件工单数量按故障分布
        Incident_30DaysDistribute,
        #endregion

        #region  事件
        //事件源（网络 主机...）
        Event_Source,
        Event_OperationAppStatus,
        Event_FoundationAppStatus,
        Event_OfficeAppStatus,
        Event_ManageAppStatus,
        //告警按饼图分类
        Event_AllWarnSourceDistribute,
        //告警列表
        Event_List,
        #endregion
    }

    public enum IncidentStatus
    {
        None,
        Logged,
        Assigned,
        Active,
        Resolved,
        Closed,
        Cancelled,
        Pending,
        Reopen
    }

    public class ReportParameter<Model>
    {
        public WebSocketClientType ReportType { get; set; }
        public int PageCount { get; set; }
        public int PageIndex { get; set; }
        public Model Data { get; set; }
    }
}
